﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Zaka.aspx.vb" Inherits="ZakaFrontEnd.Zaka" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Cromos da Bola</title>

    <script type="text/javascript">

        function pageLoad() {
        }
    
    </script>

    <link href="default.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="images/favicon.ico" />
    <link rel="icon" type="image/gif" href="/images/animated_favicon1.gif" />
    <style type="text/css">
        .style2
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
    </div>
    <div id="wrapper">
        <div id="header">
            <div id="logo">
                <h1>
                    <a href="Zaka.aspx">PES D'Xumbo</a></h1>
            </div>
            <!-- end div#logo -->
            <div id="menu">
                <br />
                <br />
                <table class="style2">
                    <tr>
                        <td align="left">
                            &nbsp;&nbsp;
                            <asp:Label ID="lblBV" runat="server" Text="Bem Vindo," ForeColor="White"></asp:Label>
                            <asp:LoginName ID="LoginName1" runat="server" ForeColor="White" />
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkPessoal" runat="server" NavigateUrl="~/ZakaPessoal.aspx" ToolTip="Vai para a área Pessoal">Pessoal</asp:HyperLink>
                        </td>
                        <td align="right">
                            <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="~/ZakaLogin.aspx"
                                LogoutAction="RedirectToLoginPage" />
                        </td>
                    </tr>
                </table>
            </div>
            <!-- end div#menu -->
        </div>
        <!-- end div#header -->
        <div id="page">
            <div id="content">
                <div id="welcome">
                    <h1>
                        Rank</h1>
                    <div>
                        <asp:GridView ID="gvRank" runat="server" AutoGenerateColumns="False" Width="100%"
                            BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px"
                            CellPadding="4" CellSpacing="2" ForeColor="Black" GridLines="None">
                            <RowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="NomeUtilizador" HeaderText="Nome" SortExpression="NomeUtilizador" />
                                <asp:BoundField DataField="Vitorias" HeaderText="Vitorias" SortExpression="Vitorias" />
                                <asp:BoundField DataField="Empates" HeaderText="Empates" SortExpression="Empates" />
                                <asp:BoundField DataField="Derrotas" HeaderText="Derrotas" SortExpression="Derrotas" />
                                <asp:BoundField DataField="Pontos" HeaderText="Pontos" SortExpression="Pontos" />
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                        </asp:GridView>
                    </div>
                </div>
                <!-- end div#welcome -->
                <br />
                <div id="sample1" class="boxed">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <h2>
                                Jogos</h2>
                            <div>
                                <asp:GridView ID="gvJogos" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC"
                                    BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" Width="100%"
                                    ForeColor="Black" CellSpacing="2" AllowPaging="True" PageSize="5">
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <RowStyle BackColor="White" />
                                    <Columns>
                                        <asp:BoundField DataField="IDJogos" HeaderText="IDJogos" SortExpression="IDJogos"
                                            Visible="False" />
                                        <asp:BoundField DataField="Data" HeaderText="Data" SortExpression="Data" DataFormatString="{0:d}" />
                                        <asp:BoundField DataField="Resultado" HeaderText="Resultado" SortExpression="Resultado" />
                                        <asp:BoundField DataField="MVP" HeaderText="MVP" SortExpression="MVP" />
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:Image ID="Image1" runat="server" ImageUrl="~/images/magglass.jpg" />
                                                <cc1:PopupControlExtender ID="Image1_PopupControlExtender" runat="server" DynamicServiceMethod="GetDynamicContent"
                                                    DynamicContextKey='<%# Eval("IDJogos") %>' DynamicControlID="Panel1" TargetControlID="Image1"
                                                    PopupControlID="Panel1" Position="Right">
                                                </cc1:PopupControlExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="#CCCCCC" />
                                    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <!-- end div#sample1 -->
                <%--  <div id="sample2" class="boxed">
                    <h2>
                        Regras</h2>
                    <p>
                        O sistema de pontuação é feito da seguinte maneira:</p>
                    <ul>
                        <li>Vitoria -> 3 Pontos.</li>
                        <li>Derrota -> 0 Pontos.</li>
                        <li>Troféus -> 1 Ponto.</li>
                        <li>MVP -> 1 Ponto.</li>
                    </ul>
                </div>--%>
                <!-- end div#sample2 -->
            </div>
            <!-- end div#content -->
            <div id="sidebar">
                <div>
                    <h2>
                        Troféus</h2>
                    <br />
                    <asp:GridView ID="gvTrofeus" runat="server" AutoGenerateColumns="False" Width="200px"
                        CssClass="teste" GridLines="None">
                        <Columns>
                            <asp:BoundField DataField="IDTrofeu" HeaderText="ID" Visible="False" />
                            <asp:BoundField DataField="NomeTrofeu" HeaderText="Nome" />
                            <asp:TemplateField HeaderText="Vencedor">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("Vencedor") %>'>'</asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <br />
                <div>
                    <h2>
                        Votação</h2>
                    <br />
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Width="100%">
                                <cc1:TabPanel ID="TabPanel1" runat="server" BackColor="#99CCFF" HeaderText="Votação MVP">
                                    <HeaderTemplate>
                                        Votação MVP
                                    </HeaderTemplate>
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="ddlListaJogos" runat="server" AutoPostBack="True">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="ddlVotaMVP" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnSubmeter" runat="server" Text="Submeter" />
                                                    <cc1:ConfirmButtonExtender ID="btnSubmeter_ConfirmButtonExtender" runat="server"
                                                        ConfirmText="De certeza?" Enabled="True" TargetControlID="btnSubmeter">
                                                    </cc1:ConfirmButtonExtender>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </cc1:TabPanel>
                                <cc1:TabPanel ID="Tab2" runat="server" HeaderText="Votação Troféus">
                                    <HeaderTemplate>
                                        Votação Troféus
                                    </HeaderTemplate>
                                    <ContentTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="ddlListaTrofeus" runat="server" AutoPostBack="True">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="ddlTrofeu" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Button ID="btnSubmeterTrofeu" runat="server" Text="Submeter" />
                                                    <cc1:ConfirmButtonExtender ID="btnSubmeterTrofeu_ConfirmButtonExtender" runat="server"
                                                        ConfirmText="De certeza?" Enabled="True" TargetControlID="btnSubmeterTrofeu">
                                                    </cc1:ConfirmButtonExtender>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </cc1:TabPanel>
                            </cc1:TabContainer>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <br />
                <div>
                    <h2>
                        Regras
                    </h2>
                    <br />
                    <p>
                        O sistema de pontuação é feito da seguinte maneira:</p>
                    <br />
                    <p>
                        - Vitoria = 3 Pontos.</p>
                    <p>
                        - Empate = 1 Ponto.
                    </p>
                    <p>
                        - Derrota = 0 Pontos.</p>
                    <p>
                        - MVPa = 1 Ponto.</p>
                </div>
            </div>
            <!-- end div#sidebar -->
            <div style="clear: both; height: 1px">
            </div>
        </div>
        <!-- end div#page -->
        <div id="footer">
            <p id="legal">
                Copyright @ 2009 Cromos da Bola. All Rights Reserved. Designed by JP
            </p>
        </div>
        <!-- end div#footer -->
    </div>
    <asp:Panel ID="Panel1" runat="server">
    </asp:Panel>
    <%--  <asp:Panel ID="PanelContainer" runat="server" Style="width: 200px; position: absolute;
        top: 20%; left: 5%;" BorderStyle="Double">
        <asp:Panel ID="PanelHeader" CssClass="teste" runat="server" Style="width: 100%; height: 100%;">
            <div style="text-align: center; cursor: move; font-weight: bold;">
                Equipas Última Jornada</div>
        </asp:Panel>
        <asp:Panel ID="PanelBody" runat="server" Style="width: 100%; height: 100%;" CssClass="teste">
            <table width="99%">
                <tr>
                    <td>
                        <b>Equipa A</b>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gvEquipaA" runat="server" GridLines="None" AutoGenerateColumns="False"
                            ShowHeader="false">
                            <Columns>
                                <asp:BoundField DataField="NomeUtilizador" ShowHeader="False" />
                            </Columns>
                            <EmptyDataTemplate>
                                Equipa não definida...
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Equipa B</b>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gvEquipaB" runat="server" GridLines="None" AutoGenerateColumns="False"
                            ShowHeader="false">
                            <Columns>
                                <asp:BoundField DataField="NomeUtilizador" ShowHeader="False" />
                            </Columns>
                            <EmptyDataTemplate>
                                Equipa não definida...
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
    <cc1:DragPanelExtender ID="Panel2_DragPanelExtender" runat="server" DragHandleID="PanelHeader"
        Enabled="True" TargetControlID="PanelContainer">
    </cc1:DragPanelExtender>--%>
    <!-- end div#wrapper -->
    </form>
</body>
</html>
